package com.wpml.cloud.myprovider.service;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Date 2021-05-13
 * @Author wangpei
 **/
@Service
public class LogTestService {
    private static final Logger logger = LogManager.getLogger(LogTestService.class);

    public void testLog() {
        logger.info("=============testLog info================");
        printWarn();
        printError();
    }

    private void printWarn() {
        logger.warn("=============testLog warn================");
    }

    private void printError() {
        logger.error("=============testLog error================");
    }
}
